<?php

/**
 * ComisionAcademica form.
 *
 * @package    sistema_estadisticas
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ComisionAcademicaForm extends BaseComisionAcademicaForm
{
	public function configure()
	{
		$this->widgetSchema['asistente_docente_list'] = new WidgetFormAutocomplete(
			array(
				'action' => 'docente/buscar',
				'model' => 'Docente',
				'multiple' => true,
				'plural' => 'Docentes'
			)
		);
		
		$this->widgetSchema['asistente_estudiante_list'] = new WidgetFormAutocomplete(
			array(
				'action' => 'estudiante/buscar',
				'model' => 'Estudiante',
				'multiple' => true,
				'plural' => 'Estudiantes'
			)
		);
		
		if (!$this->isNew)
		{
			$this->widgetSchema['asistente_docente_list']->addOption('values', $this->getObject()->getAsistenteDocente());
			$this->widgetSchema['asistente_estudiante_list']->addOption('values', $this->getObject()->getAsistenteEstudiante());
		}
	}

}
